package com.iotechn.unimall.app.api.card;


import com.iotechn.unimall.core.annotation.HttpMethod;
import com.iotechn.unimall.core.annotation.HttpOpenApi;
import com.iotechn.unimall.core.annotation.HttpParam;
import com.iotechn.unimall.core.annotation.HttpParamType;
import com.iotechn.unimall.core.annotation.param.NotNull;
import com.iotechn.unimall.core.exception.ServiceException;
import com.iotechn.unimall.data.domain.CardDO;
import com.iotechn.unimall.data.model.Page;

import java.util.List;

@HttpOpenApi(group = "card", description = "卡信息")
public interface CardService {

    @HttpMethod(description = "卡列表")
    public List<CardDO> cardList(
            @HttpParam(name = "pageNo", type = HttpParamType.COMMON, description = "页码") Integer pageNo,
            @HttpParam(name = "limit", type = HttpParamType.COMMON, description = "条数") Integer limit
            ) throws ServiceException;

    @HttpMethod(description = "卡详情")
    public CardDO getCardDO(
            @NotNull @HttpParam(name = "cardId", type = HttpParamType.COMMON, description = "卡id") Long cardId
    ) throws ServiceException;

}
